package com.aaa.mapper;

import com.aaa.entity.Menu;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

@Mapper
public interface MenuMapper extends BaseMapper<Menu> {
    //   查询用户能操作的所有一级菜单
    List<Menu> listMyOneMenus(Long uid);

    //    查询某一个一级菜单下的所有二级菜单
    List<Menu> listMyTwoMenus(@Param("uid") Long uid, @Param("pid") Long pid);
}
